package com.beilang.base.util;

import javax.mail.PasswordAuthentication;

/**
 * Created by IntelliJ IDEA.
 * User: maxshenxin
 * Date: 2010-9-21
 * Time: 20:55:29
 * To change this template use File | Settings | File Templates.
 */
public class MyAuthenticator extends javax.mail.Authenticator{
    private String strUser;
    private String strPwd;

    public MyAuthenticator(String user, String password) {
        this.strUser = user;
        this.strPwd = password;
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(strUser, strPwd);
    }
}
